package com.aia.ilp.web.sanity;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionSupport;

public class TestencodeAction extends ActionSupport {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(TestencodeAction.class);

	private static final long serialVersionUID = 1L;
	private String cnstring;
	/***
	 * nouse
	 */
	public String execute() {
		if (logger.isDebugEnabled()) {
			logger.debug("execute() - start"); //$NON-NLS-1$
		}
		
		if(cnstring!=null){
			  addActionMessage("您输入的值是："+ cnstring);
			
		}else{
			 addActionMessage("您输入的是空值");
		}

		if (logger.isDebugEnabled()) {
			logger.debug("execute() - end"); //$NON-NLS-1$
		}
		return SUCCESS;
	}

	public void setCnstring(String cnstring) {
		this.cnstring = cnstring;
	}

	public String getCnstring() {
		return cnstring;
	}



}
